#include <stdio.h>
#include <string.h>

#define N 80

int main()
{
    int diff;
    scanf("%d", &diff);
    char s[N + 1];
    int c, i = 0;
    getchar();
    while ((c = getchar()) != '\n')
    {
        if (c == ' ') {
                putchar(c);
                continue;
        }
        if (c == ',') {
                putchar(c);
                continue;
        }
        if (c == '.') {
                putchar(c);
                continue;
        }
        if (c + diff > 'z')
                putchar(c + diff - 26);
        else
                putchar(c + diff);
    }
    return 0;
}